<template>
  <el-container>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item>首页</el-breadcrumb-item>
      <el-breadcrumb-item>批发市场基本信息管理</el-breadcrumb-item>
      <el-breadcrumb-item>基本人事档案</el-breadcrumb-item>
    </el-breadcrumb>
    <el-header style="height: auto;">
      <el-form inline>
        <el-form-item label="人员编号" size="mini">
          <el-input placeholder="人员编号"></el-input>
        </el-form-item>
        <el-form-item label="人员姓名" size="mini">
          <el-input placeholder="人员姓名"></el-input>
        </el-form-item>
        <el-form-item label="民族" size="mini">
          <el-select placeholder="民族" value="全部">
            <el-option value="汉族" />
            <el-option value="壮族" />
            <el-option value="回族" />
            <el-option value="苗族" />
            <el-option value="维吾尔族" />
          </el-select>
        </el-form-item>
        <el-form-item label="出生年月日" size="mini">
          <el-date-picker
              type="date"
              placeholder="选择日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="联系电话" size="mini">
          <el-input placeholder="联系电话"></el-input>
        </el-form-item>
        <el-form-item label="身份证号" size="mini">
          <el-input placeholder="身份证号"></el-input>
        </el-form-item>
        <el-form-item size="mini">
          <el-button icon="el-icon-search" type="primary">查询</el-button>
          <el-button icon="el-icon-refresh">重置</el-button>
        </el-form-item>
      </el-form>
    </el-header>
    <el-main>
      <el-row style="float: right; margin-bottom: 10px;">
        <el-button icon="el-icon-plus" size="mini" type="primary">新增</el-button>
        <el-button icon="el-icon-delete" size="mini" type="danger">删除</el-button>
        <el-button icon="el-icon-download" size="mini" type="warning">导出</el-button>
      </el-row>
      <el-table :cell-style="{ textAlign: 'center' }" :data="tableData"
                :header-cell-style="{ backgroundColor: '#f7f8fa', textAlign: 'center' }" size="mini">
        <el-table-column type="selection" />
        <el-table-column label="序号" prop="id" />
        <el-table-column label="人员编号" prop="code" />
        <el-table-column label="人员姓名" prop="name" />
        <el-table-column label="性别" prop="sex" />
        <el-table-column label="民族" prop="nation" />
        <el-table-column label="出生年月日" prop="birth" />
        <el-table-column label="联系电话" prop="tel" />
        <el-table-column label="学历" prop="edu" />
        <el-table-column label="家庭住址" prop="address" />
        <el-table-column label="身份证号" prop="personCode" />
        <el-table-column label="紧急联系人" prop="responser" />
        <el-table-column label="紧急联系电话" prop="responserTel" />
        <el-table-column label="照片" prop="pic">
          <template slot-scope="scope">
            <el-button title="点击查看" type="text">点击查看</el-button>
          </template>
        </el-table-column>
        <el-table-column label="操作">
          <template slot-scope="scope">
            <el-button icon="el-icon-edit" title="编辑" type="text"></el-button>
            <el-button icon="el-icon-circle-plus-outline" title="新增" type="text"></el-button>
            <el-button icon="el-icon-delete" style="color: red" title="删除" type="text"></el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination :total="3" layout="total, sizes, prev, pager, next, jumper" />
    </el-main>
  </el-container>
</template>

<script>
export default {
  data () {
    return {
      tableData: [{
        id: '1',
        code: 'II001',
        name: '纪广',
        sex: '男',
        nation: '汉',
        birth: '1985/6/6',
        tel: '19333312231',
        edu: '本科',
        address: '历下区历山路1024号',
        personCode: '37233019970222465X',
        responser: '周乐心',
        responserTel: '19612348970'
      },
        {
          id: '2',
          code: 'II002',
          name: '李四',
          sex: '男',
          nation: '汉',
          birth: '1985/6/6',
          tel: '19113211388',
          edu: '大专',
          address: '历下区历山路1024号',
          personCode: '37233019970222465X',
          responser: '李赫',
          responserTel: '19434129071'
        },
        {
          id: '3',
          code: 'II003',
          name: '顾伦',
          sex: '女',
          nation: '汉',
          birth: '1985/6/6',
          tel: '19533319000',
          edu: '高职',
          address: '历下区历山路1024号',
          personCode: '37233019970222465X',
          responser: '胡小小',
          responserTel: '19729922849'
        }
      ]
    }
  }
}
</script>

<style scoped>
.el-breadcrumb {
  margin: 5px;
}

.el-container {
  background-color: #eef3fa;
  height: 100%;
  padding: 10px;
}

/* .el-form-item--mini.el-form-item {
margin-bottom: 0;
} */
.el-header {
  background-color: white;
  margin: 10px 0;
  padding: 15px 30px;
}

.el-main {
  background-color: white;
}

.el-pagination {
  margin-top: 10px;
  text-align: right;
}
</style>
